package com.api.shopapi.service;

import com.api.shopapi.entity.Cashier;
import com.api.shopapi.entity.dto.CashierDTO;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface CashierService {

    int insert(Cashier cashier);

    int update(Cashier cashier);

    Cashier getByCashierCode(String cashierCode);

    Cashier getByUserCode(String userCode);

    PageInfo<CashierDTO> getPage(int pageIndex,int pageSize,String name,int status,String businessCode);

    List<CashierDTO> getList(String businessCode);



    /**
     * 商家查看收银员列表
     * */
    PageInfo<Cashier> PageByBusinessCode(int pageIndex,int pageSize,String name,String businessCode);


    /**
     * 政府查看收银员列表
     * */
    PageInfo<Cashier> PageByGovernmentCodeBusinessCode(int pageIndex,int pageSize,String governmentCode,String businessCode);



}
